// TestDlg.h : header file
//

#pragma once
#include "afxwin.h"


// DCMLicenseGenDlg dialog
class DCMLicenseGenDlg : public CDialog
{
	CDCMLicense::eLicenseAppType m_CurAppType;
	CDCMLicense::eLicenseType	m_licSubType;
	CString						m_CurAppName;

private:
	unsigned __int64 GetOptBitsNew();


// Construction
public:
	DCMLicenseGenDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_TEST_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()

	void UpdateOptionsNew(bool bUseCustomKey = false);
	void UpdateOptions(bool bUseCustomKey = false);
	void UpdateOptionsFlags();

public:
	CComboBox m_CtrlLicType;
	afx_msg void OnCbnSelchangeComboLicType();
	afx_msg void OnCbnEditchangeComboLicType();
	CButton m_BtnDecodeCustom;
	afx_msg void OnEnChangeEditKey();
	afx_msg void OnEnChangeEditVersion();
	afx_msg void OnBnClickedButtonReload();
	afx_msg void OnBnClickedSetoptionsButton();
	afx_msg void OnBnClickedButtonCopyKey2Clipboard();
	afx_msg void OnBnClickedCheckProEdition();
	afx_msg void OnBnClickedOptLiteCheck();
	afx_msg void OnBnClickedNotimeoutOptCheck();
	afx_msg void OnBnClickedNoexpireOptCheck();
	afx_msg void OnBnClickedCheckRegistered();
	afx_msg void OnBnClickedCheckIPOD();
	CString m_KeyVal;
	CString m_strOptionsMask;
	BOOL m_bProEdition;
	BOOL m_bOptionLite;
	BOOL m_bOptionNoTimeout;
	BOOL m_bOptionNoExpire;
	BOOL m_bIsRegistered;
	BOOL m_bIPOD;
	DWORD m_ProdId;
	DWORD m_Version;
	DWORD m_TimeStamp;
	CTime m_Date;
	CTime m_Time;
	BOOL m_bEmbededUID;
	CString m_Uid;
	afx_msg void OnBnClickedButtonDecodeCustomKey();
	afx_msg void OnBnClickedCheckEmbeddedUid();
};
